import { apiUrl } from '@/common/js/Base.js'
export const login = {
    /**登陆**/
    userLogin(obj) {
        return $ajax.post(apiUrl.user + 'user/login', obj).then(function(res) {
            return Promise.resolve(res.data)
        })
    },
    foo(obj) {
        return $ajax.get(apiUrl.user + 'foo/foo1', { params: obj }).then(function(res) {
            return Promise.resolve(res.data);
        })
    },

}